package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 1:25:05 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DvCtrlCambioEst generated by hbm2java
 */
@Entity
@Table(name = "DV_CTRL_CAMBIO_EST", schema = "DEVOLUCIONES")
@SequenceGenerator(name = "seq_dv_ctrl_cambio_est", sequenceName = "seq_dv_ctrl_cambio_est")
public class DvCtrlCambioEst implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8284526786668917817L;
	private Long icorrelativo;
	private Long iindice;
	private String nfolio;
	private String mprocesoAnt;
	private String mprocesoAct;
	private String shost;
	private String cusuario;
	private Date fhingreso;
	private Long nLongitudResoAn;
	private Long nLongitudResoAc;
	private Date fhFin;

	public DvCtrlCambioEst() {
	}

	public DvCtrlCambioEst(Long icorrelativo, Long iindice, String nfolio, String mprocesoAnt,
			String mprocesoAct, String shost, String cusuario, Date fhingreso) {
		this.icorrelativo = icorrelativo;
		this.iindice = iindice;
		this.nfolio = nfolio;
		this.mprocesoAnt = mprocesoAnt;
		this.mprocesoAct = mprocesoAct;
		this.shost = shost;
		this.cusuario = cusuario;
		this.fhingreso = fhingreso;
	}

	public DvCtrlCambioEst(Long icorrelativo, Long iindice, String nfolio, String mprocesoAnt,
			String mprocesoAct, String shost, String cusuario, Date fhingreso,
			Long nLongitudResoAn, Long nLongitudResoAc) {
		this.icorrelativo = icorrelativo;
		this.iindice = iindice;
		this.nfolio = nfolio;
		this.mprocesoAnt = mprocesoAnt;
		this.mprocesoAct = mprocesoAct;
		this.shost = shost;
		this.cusuario = cusuario;
		this.fhingreso = fhingreso;
		this.nLongitudResoAn = nLongitudResoAn;
		this.nLongitudResoAc = nLongitudResoAc;
	}

	@Id
	@Column(name = "I_CORRELATIVO", unique = true, nullable = false, precision = 10, scale = 0)
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_dv_ctrl_cambio_est")
	public Long getIcorrelativo() {
		return this.icorrelativo;
	}

	public void setIcorrelativo(Long icorrelativo) {
		this.icorrelativo = icorrelativo;
	}

	@Column(name = "I_INDICE", nullable = false, precision = 18, scale = 0)
	public Long getIindice() {
		return this.iindice;
	}

	public void setIindice(Long iindice) {
		this.iindice = iindice;
	}

	@Column(name = "N_FOLIO", nullable = false, length = 12)
	public String getNfolio() {
		return this.nfolio;
	}

	public void setNfolio(String nfolio) {
		this.nfolio = nfolio;
	}

	@Column(name = "M_PROCESO_ANT", nullable = false, length = 2)
	public String getMprocesoAnt() {
		return this.mprocesoAnt;
	}

	public void setMprocesoAnt(String mprocesoAnt) {
		this.mprocesoAnt = mprocesoAnt;
	}

	@Column(name = "M_PROCESO_ACT", nullable = false, length = 2)
	public String getMprocesoAct() {
		return this.mprocesoAct;
	}

	public void setMprocesoAct(String mprocesoAct) {
		this.mprocesoAct = mprocesoAct;
	}

	@Column(name = "S_HOST", nullable = false, length = 60)
	public String getShost() {
		return this.shost;
	}

	public void setShost(String shost) {
		this.shost = shost;
	}

	@Column(name = "C_USUARIO", nullable = false, length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", nullable = false, length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Column(name = "N_LONGITUD_RESO_AN", precision = 10, scale = 0)
	public Long getNLongitudResoAn() {
		return this.nLongitudResoAn;
	}

	public void setNLongitudResoAn(Long nLongitudResoAn) {
		this.nLongitudResoAn = nLongitudResoAn;
	}

	@Column(name = "N_LONGITUD_RESO_AC", precision = 10, scale = 0)
	public Long getNLongitudResoAc() {
		return this.nLongitudResoAc;
	}

	public void setNLongitudResoAc(Long nLongitudResoAc) {
		this.nLongitudResoAc = nLongitudResoAc;
	}

	/**
	 * @return the fhFin
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_FIN", nullable = true, length = 7)
	public Date getFhFin() {
		return fhFin;
	}

	/**
	 * @param fhFin
	 *            the fhFin to set
	 */
	public void setFhFin(Date fhFin) {
		this.fhFin = fhFin;
	}

}
